Skip to content

[d16-9] [msbuild] Fix codesign StampPath. Fix #10445 - #10463

Merged
spouliot merged 1 commit into
d16-9from
backport-pr-10459-to-d16-9
Jan 20, 2021
Merged

[d16-9] [msbuild] Fix codesign StampPath. Fix #10445#10463
spouliot merged 1 commit into
d16-9from
backport-pr-10459-to-d16-9

Conversation

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

Using Path.Combine with a full qualified path for the 2nd argument will
return that 2nd argument (ignoring the first one).

That meant the StampPath was pointing to the actual files that were
just signed - overwriting them with a 0-length data (empty).

The solution is to make the 2nd argument relative, starting after
.app/ so Path.Combine works as expected (being relative) while
allowing signing multiple files that have the same name (in different
directories).

ref: #10445

Backport of #10459

Using `Path.Combine` with a full qualified path for the 2nd argument will
return that 2nd argument (ignoring the first one).

That meant the `StampPath` was pointing to the actual files that were
just signed - overwriting them with a 0-length data (empty).

The solution is to make the 2nd argument relative, starting after
`.app/` so `Path.Combine` works as expected (being relative) while
allowing signing multiple files that have the same name (in different
directories).

ref: #10445
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator Author

❌ Tests failed on Build ❌

Tests failed on Build.

Test results

3 tests failed, 38 tests passed.

Failed tests

  • xammac tests/Mac Modern/Debug: Failed (Tests run: 2450 Passed: 2318 Inconclusive: 12 Failed: 1 Ignored: 131)
  • [xUnit] Mono Mac OS X BCL tests group 4/Mac Modern/Debug: Failed (No test log file was produced)
  • MTouch tests/NUnit: Failed (Execution failed with exit code 7)

Pipeline on Agent XAMBOT-1094'

@spouliot
spouliot merged commit fa63614 into d16-9 Jan 20, 2021
@spouliot
spouliot deleted the backport-pr-10459-to-d16-9 branch January 20, 2021 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants